package com.jingdianjichi.subject.domain.convert;


import com.jingdianjichi.subject.domain.entity.SubjectInfoBo;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBo;
import com.jingdianjichi.subject.domain.entity.SubjectOptionBo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import com.jingdianjichi.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface SubjectInfoConverter {

    SubjectInfoConverter INSTANCE = Mappers.getMapper(SubjectInfoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBo);
    SubjectInfoBo convertOptionToBo(SubjectOptionBo subjectOptionBo);
    SubjectInfoBo convertOptionAndInfoToBo(SubjectOptionBo subjectOptionBo,SubjectInfo subjectInfo);
    List<SubjectInfoBo> convertListBoToInfo(List<SubjectInfo> subjectInfoList);
}
